<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">    
    <title>details_bid</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>  
  <body>
  	<s:include value="/include/header.jsp"></s:include>
  	<s:if test="%{#session.userId != null}">
  	<table>
  		<tr>
		  	<td><s:text name="Bid/Offer's ID" /></td>
		  	<td><s:text name="Transaction" /></td>
		  	<td><s:text name="Create Time" /></td>
		  	<td><s:text name="Type of Bid/Offer" /></td>
		  	<td><s:text name="Description" /></td>
	  	</tr>
	    <tr>
	    <td><s:property value="bid.BId" /></td>	    
	  	<td>
		  	<a href="<s:url includeParams="none" namespace="/" action="user/details_transaction" >
		  					<s:param name="trId"><s:property value="bid.transaction.trId" /></s:param></s:url>">
				<s:property value="bid.transaction.trDescription" />
			</a>   
		</td>
		<td><s:property value="bid.BDate"/></td>
	  	<td><s:property value="%{#request['bidtype']}" /></td>
	  	<td><s:property value="bid.BDescription" /></td>
	  	</tr>  	
	  </table>
	  
	  	<a href="<s:url includeParams="none" namespace="/" action="user/go_add_file" >
	  					<s:param name="scId"><s:property value="bid.transaction.serviceContract.scId" /></s:param>
	  					<s:param name="trId"><s:property value="bid.transaction.trId" /></s:param>
	  					<s:param name="BId"><s:property value="bid.BId" /></s:param></s:url>">
			<s:text name="create_file" />
		</a>
		<br>
	  	<a href="<s:url includeParams="none" namespace="/" action="user/show_the_files" >  					
	  					<s:param name="scId"><s:property value="bid.transaction.serviceContract.scId" /></s:param>
	  					<s:param name="trId"><s:property value="bid.transaction.trId" /></s:param>
	  					<s:param name="BId"><s:property value="bid.BId" /></s:param></s:url>">
			<s:text name="show_the_files" />
		</a>
		<br>
		<a href="<s:url includeParams="none" namespace="/" action="user/show_the_BDs" >
						<s:param name="trId"><s:property value="bid.transaction.trId" /></s:param></s:url>">
			<s:text name="backto_the_BDs" />
		</a>
		<br/>
	
	</s:if>
  </body>
</html>
